FROM openjdk:8u312-jre-slim-bullseye
MAINTAINER "chaoqunyu9311@163.com"

ENV JAVA_VERSION "java1.8_312"
WORKDIR /app
EXPOSE 8099

RUN bash -c "cd / && pwd"

RUN sh -c "mkdir -p /app/data && mkdir -p /app/logs"
RUN mkdir -p /app/target

COPY target/ycc-api-admin.jar ./target/
COPY config/ ./
COPY bin/ ./

RUN ls -l ./

CMD ["/bin/bash" ,"-c","sh ./bin/startup.sh"]

